package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.DingBundleEntity;

import java.util.List;

/**
 * @author chenshan
 * @version v1.0
 * @since 2019-08-16 10:49
 */
public interface DingBundleModel extends IModel<DingBundleEntity> {
    
    void insertBatch(List<DingBundleEntity> dingBundleList);

    Integer save(DingBundleEntity entity);

    DingBundleEntity getEntity(Long id, String corpid);

    Integer deleteByIds(List<Long> ids, String corpid);
    
    DingBundleEntity getByOpenConversationId(String corpid,String openConversationId,Integer del);
    
    DingBundleEntity getByOpenConversationId(String corpid,String openConversationId);

    Integer dataConsistencyUpdateUser(String corpid, String ownerId, String name, String avatar);

    DingBundleEntity getByType(String corpid,String openConversationId, Integer type);

    DingBundleEntity getByType(String corpid,String openConversationId, Integer type, Integer del);
}